import {createApp} from 'vue'
//引入mitt
import mitt from 'mitt'
import App from './App.vue'
const app = createApp(App)
//实例化mitt，并挂载到全局属性globalProperties上
app.config.globalProperties.$bus=new mitt()
app.mount('#app')